home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 September (Japanese) / CICA Shareware for Windows CD-ROM (Walnut Creek) (September 1995) (Japanese) (Disc 2).iso / disc2 / patches / symantec / mfcsim.exe / SIMNEW.EXE / MFC / SAMPLES / DOCTEMP / USERCODE.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-06  |  3.0 KB  |  144 lines

  1. // Filename: USERCODE.CPP                                   
  2. // "DOCTEMP" Generated by Visual Programmer
  3. // Author:   Blue Sky                                          
  4.  
  5. // 
  6. // ***********************************************************************
  7. // Code in this file is initially generated by the Switch-It Module.
  8. // This file contains functions you can change
  9. // to provide whatever functionality you require.
  10. // 
  11. // 
  12. // 
  13. // For more information,
  14. // see the section "How code is generated" in the documentation.
  15. // 
  16. // ***********************************************************************
  17. // 
  18.  
  19. #include "AFXWIN.H"
  20. #include "DOCTEMP.H"
  21.  
  22. WMPDEBUG
  23.  
  24. #ifdef _DEBUG
  25. #undef THIS_FILE
  26. static char BASED_CODE THIS_FILE[] = __FILE__;
  27. #endif
  28.  
  29.  
  30. #include "USERCODE.WMC"
  31.     
  32.     
  33.     
  34.  
  35.  
  36. // *************************************************************
  37. //   C Startup function for window MDICHILD
  38. // *************************************************************
  39.  
  40. CWnd* BLD_MDICHILDCreateWnd(CWnd *pAParent)
  41.     {
  42.     Cwm_MDICHILDWnd *pMDICHILDWnd;
  43.  
  44.     // Create the object
  45.     pMDICHILDWnd = new Cwm_MDICHILDWnd();
  46.     if (!pMDICHILDWnd)
  47.         return NULL;
  48.  
  49.     // Create the window
  50.     pMDICHILDWnd->SimInitWindow(pAParent);
  51.  
  52.     return pMDICHILDWnd;
  53.     }
  54.  
  55.  
  56.  
  57. // *************************************************************
  58. // Member Functions for Window: Cwm_MDICHILDWnd
  59. // Base Class                 : Cwm_MDICHILDBaseWnd
  60. // Derived from MFC Class     : CWnd
  61. // *************************************************************
  62.  
  63. Cwm_MDICHILDWnd :: Cwm_MDICHILDWnd()
  64.     : Cwm_MDICHILDBaseWnd()
  65. {
  66. }
  67.  
  68.  
  69. Cwm_MDICHILDWnd :: ~Cwm_MDICHILDWnd()
  70. {
  71. }
  72.  
  73.  
  74. IMPLEMENT_DYNCREATE(Cwm_MDICHILDWnd,Cwm_MDICHILDBaseWnd)
  75.  
  76. BEGIN_MESSAGE_MAP(Cwm_MDICHILDWnd,Cwm_MDICHILDBaseWnd)
  77.  
  78.     // YOU CAN ADD YOUR OWN CODE HERE
  79.  
  80.     //{{SIM_MSG_MAP(Cwm_MDICHILDWnd)
  81.     // DO NOT EDIT what you see in this block of generated code.
  82.     //}}SIM_MSG_MAP(Cwm_MDICHILDWnd)
  83.  
  84. END_MESSAGE_MAP()
  85.  
  86.  
  87. //{{SIM_MSG_BODY(Cwm_MDICHILDWnd)
  88. // Message Handler Functions for you to edit will come here.
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96. //}}SIM_MSG_BODY(Cwm_MDICHILDWnd)
  97.  
  98.  
  99.  
  100. // *************************************************************
  101. // Cwm_MDICHILDWnd diagnostics
  102.  
  103. #ifdef _DEBUG
  104. void Cwm_MDICHILDWnd::AssertValid() const
  105. {
  106.     Cwm_MDICHILDBaseWnd::AssertValid();
  107. }
  108.  
  109. void Cwm_MDICHILDWnd::Dump(CDumpContext& dc) const
  110. {
  111.     Cwm_MDICHILDBaseWnd::Dump(dc);
  112. }
  113.  
  114. #endif //_DEBUG
  115.  
  116.  
  117.  
  118. //  Function for MDI windows 
  119. BOOL BLD_CascadeSendMDI(CWnd *pWnd)
  120.     {
  121.     return BLDSendMDIMessage(pWnd,WM_MDICASCADE,0);
  122.     }
  123.  
  124.  
  125. //  Function for MDI windows 
  126. BOOL BLD_TileSendMDI(CWnd *pWnd)
  127.     {
  128.     return BLDSendMDIMessage(pWnd,WM_MDITILE,0);
  129.     }
  130.  
  131.  
  132. //  Function for MDI windows 
  133. BOOL BLD_ArrangeIconsSendMDI(CWnd *pWnd)
  134.     {
  135.     return BLDSendMDIMessage(pWnd,WM_MDIICONARRANGE,0);
  136.     }
  137.  
  138.  
  139. //  Function for MDI windows 
  140. BOOL BLD_CloseActiveSendMDI(CWnd *pWnd)
  141.     {
  142.     return BLDSendMDIMessage(pWnd,WM_MDIGETACTIVE,0);
  143.     }
  144.